/** 各个模块共用 */

/**
 * 
 * @param {Object}
 *            tableTr 表格的行
 * @param {Object}
 *            color 该行要变的颜色
 * @param {Object}
 *            selected 该行是否可以被点击
 */
function changeColor(tableTr, color, selected) {
	var tds = tableTr.getElementsByTagName("td");
	for ( var i = 0; i < tds.length; i++) {
		tds[i].style.backgroundColor = color;
		if (selected) {
			tds[i].style.cursor = "pointer";
		}
	}
}
/**
 * 页面跳转
 * @param url
 */
function rediectUrl(url) {
	document.location.href = url;
}
/**
 * 判断是否为空
 * @param source
 * @returns {Boolean}
 */
function isEmpty(source) {
	if (undefined == source) {
		return true;
	}
	if (null == source) {
		return true;
	}
	if ("" == source) {
		return true;
	}
}